package com.daocao.jy.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.daocao.jy.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * Created by xsooy-pc on 18-3-22.
 */

public class GuideFragment extends BaseFragment {

    @BindView(R.id.img_guide)
    ImageView imgGuide;
    Unbinder unbinder;
    private int poi;

    public void setPoi(int poi) {
        this.poi = poi;
    }

    @Override
    protected int setLayoutId() {
        return R.layout.fragment_guide;
    }

    @Override
    protected void initView() {
        switch (poi){
//            case 0:
//                imgGuide.setImageResource(R.mipmap.img_guide_one);
//                break;
//            case 1:
//                imgGuide.setImageResource(R.mipmap.img_guide_two);
//                break;
//            case 2:
//                imgGuide.setImageResource(R.mipmap.img_guide_three);
//                break;
//            case 3:
//                imgGuide.setImageResource(R.mipmap.img_guide_four);
//                break;
        }

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        unbinder = ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
